package koala.kuangjiademo.net;


import android.view.View;

public class ViewProgressStyle extends BooleanProgressStyle {
    private View progress;

    public ViewProgressStyle(View progress) {
        this.progress = progress;
    }

    @Override
    public void onProgress(boolean progress) {
        this.progress.setVisibility(progress ? View.VISIBLE : View.GONE);
    }
}
